<?php

namespace App\Kuafu\WaiMai\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class WaiMaiCodeEnum extends BaseCodeEnum
{
    const ERR_MT_EMPTY_SHOP_MAPPING  = 419001;
    const ERR_ELM_EMPTY_SHOP_MAPPING = 419002;
    const ERR_SOURCE_TYPE            = 419003;
    const ERR_DY_EMPTY_SHOP_MAPPING  = 419004;

    const ERR_DB_ADD                = 519001;
    const ERR_DB_DEL                = 519002;
    const ERR_EMPTY_ORDER_ID        = 519003;
    const ERR_API_ORDER_DETAIL      = 519004;
    const ERR_THIRD_SHOP_ID_EXISTS  = 519005;
    const ERR_SHOP_ID_NOT_BIND      = 519006;
    const ERR_STATUS_FINISH_FOODS   = 519007;
    const ERR_DO_FINISH_FOODS       = 519008;
    const ERR_STATUS_CONFIRM_REFUND = 519009;
    const ERR_DO_CONFIRM_REFUND     = 519010;
    const ERR_PRICE_TYPE            = 519011;
    const ERR_SET_CONFIG_VALID      = 519012;
    const ERR_SET_CONFIG_DB         = 519013;
    const ERR_DELAY_PUSH_VALID      = 519014;
    const ERR_NOT_BAND_DOUYIN       = 519015;
    const ERR_WM_SHOP_NAME_EMPTY    = 519016;
    const ERR_CREATE_ORDER_JAM      = 519017;

    const CODE_TEXT = [
        self::ERR_MT_EMPTY_SHOP_MAPPING  => '店铺未映射美团门店',
        self::ERR_ELM_EMPTY_SHOP_MAPPING => '店铺未映射饿了么门店',
        self::ERR_DY_EMPTY_SHOP_MAPPING  => '店铺未映射抖音门店',
        self::ERR_SOURCE_TYPE            => '错误的SOURCE_TYPE',

        self::ERR_DB_ADD                => '新增外卖店铺映射失败',
        self::ERR_DB_DEL                => '删除外卖店铺映射失败',
        self::ERR_EMPTY_ORDER_ID        => '不存在的orderId',
        self::ERR_API_ORDER_DETAIL      => '错误的外卖订单详情查询',
        self::ERR_THIRD_SHOP_ID_EXISTS  => '该三方门店id已被其他店铺绑定',
        self::ERR_SHOP_ID_NOT_BIND      => '该shopId未绑定店铺',
        self::ERR_STATUS_FINISH_FOODS   => '该订单已出餐',
        self::ERR_DO_FINISH_FOODS       => '商家出餐失败',
        self::ERR_STATUS_CONFIRM_REFUND => '订单状态错误，无法确认退款',
        self::ERR_DO_CONFIRM_REFUND     => '确认退款操作失败',
        self::ERR_NOT_BAND_DOUYIN       => '店铺暂未绑定抖音',
        self::ERR_PRICE_TYPE            => '不存在的priceType',
        self::ERR_SET_CONFIG_VALID      => '设置外卖自动出餐参数错误',
        self::ERR_SET_CONFIG_DB         => '设置外卖自动出餐失败，数据库异常',
        self::ERR_DELAY_PUSH_VALID      => '外卖自动出餐挂起参数错误',
        self::ERR_WM_SHOP_NAME_EMPTY    => '查询外卖店铺为空，请稍后再试',
        self::ERR_CREATE_ORDER_JAM      => '创建订单堵塞',
    ];
}
